<?php

namespace app\http\middleware;

class Check
{
    public function handle($request, \Closure $next)
    {

        /*if ($request->param('name') == 'think') {
            return redirect('index/think');
        }*/

        var_dump("this is middleware Check.php");
        $response = $next($request);

        // 添加中间件执行代码

        return $response;

    }
}
